<div class="page">
	<div class="page-header">
		<h2><?php echo ('Depreciação');?></h2>
	</div>
	<div class="page-content">
		<?php   echo $this->Form->create('Depreciacao', array('action' => 'add', 'class' => 'well', 'id' => 'formDepreciacao')); ?>
		<fieldset>
			<div class="row-fluid">
				<div class="span3">
					<div class="control-group required">
						<?php echo $this->Form->Label('mes', 'Mês', array('class' => 'control-label'));	?>
						<div class="controls">
							<?php echo $this->Form->input('mes', array('options' => $meses, 'label' => false, 'div' => false));	?>
						</div>
					</div>
				</div>
			</div>
			<div class="row-fluid">
				<div class="span3">
					<div class="control-group">
						<?php echo $this->Form->Label('ano', 'Ano', array('class' => 'control-label'));	?>
						<div class="controls">
							<?php echo $this->Form->input('ano', array('options' => $anos, 'label' => false, 'div' => false));	?>
						</div>
					</div>						
				</div>
			</div>
		</fieldset>
		<?php  echo $this->Form->end(); ?>
	</div>
	<div class="page-footer">
		<?php echo $this->Form->button('Executar Depreciação', array('id' => 'buttonSubmit', 'div' => false, 'class' => 'btn btn-primary')); 	?>
	</div>
</div>

<script type="text/javascript">

	$(document).ready(function () {
		
		$('#buttonSubmit').click(function(event){
			$('#formDepreciacao').submit();
		});
		
	});
</script>

